-
Notifications
You must be signed in to change notification settings - Fork 32
🎨Computational backend: stability improvements step7 #8400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎨Computational backend: stability improvements step7 #8400
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8400 +/- ##
==========================================
- Coverage 87.91% 87.79% -0.12%
==========================================
Files 1951 1523 -428
Lines 75961 63264 -12697
Branches 1336 674 -662
==========================================
- Hits 66779 55545 -11234
+ Misses 8782 7485 -1297
+ Partials 400 234 -166
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🧪 CI InsightsHere's what we observed from your CI run for f924987. ✅ Passed Jobs With Interesting Signals
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the computational backend stability by reducing connection concurrency and improving error handling. The changes focus on preventing connection overload and ensuring better exception handling for disconnected scheduler scenarios.
- Reduced maximum concurrent client connections from 10 to 1 to minimize connection load
- Added exception handling for dask client cancellation errors to improve robustness
- Enhanced task resource requirements to ensure minimum CPU allocation meets dask worker threading requirements
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| services/director-v2/src/simcore_service_director_v2/modules/dask_client.py | Reduces max concurrent connections and adds exception handling for dask client cancellation errors |
| services/autoscaling/src/simcore_service_autoscaling/modules/cluster_scaling/_provider_computational.py | Ensures minimum CPU allocation of 1.0 for tasks to match dask worker threading requirements |
| packages/service-library/tests/redis/test_semaphore_decorator.py | Updates test configurations and adds new test cases for semaphore functionality |
| packages/service-library/src/servicelib/redis/_semaphore_decorator.py | Adds configurable expected lock time parameter to semaphore decorators |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
services/director-v2/src/simcore_service_director_v2/modules/dask_client.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.



What do these changes do?
ensure concurrency is kept to the minimum.
Adds an additional exception that is risen when the scheduler is not responding as expected.
Related issue/s
How to test
Dev-ops